package com.yang.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author Administrator
 * @decription
 * @Date 2018-05-22 9:01
 */
@RestController
public class SayHiController {

    @Value("${server.port}")
    private String port;

    @PostMapping(value = "/hi")
    public String sayHi(String name) {
        return "hello,my name is "+name+",i come from "+port;
    }
}
